﻿using System;

namespace TinyContainer.Attributes
{
    /// <summary>
    /// Gets and sets the property value's of an object instance.
    /// </summary>
    [AttributeUsage(AttributeTargets.Property)]
    public class ImportAttribute: Attribute
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ImportAttribute"/> class.
        /// </summary>
        /// <param name="name">The value of the attribute.</param>
        public ImportAttribute(string name = "")
        {
            this.Name = name;
        }

        /// <summary>
        /// Gets or sets the value of the attribute.
        /// </summary>
        /// <value>
        /// The value of the attribute.
        /// </value>
        public string Name { get;set; }
    }
}
